@import '../../styles/global.less';
.k-timeline {
  background-color: #fff;
  font-size: 12px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  .k-time-line-item {
    position: relative;
    &:before {
      position: absolute;
      width: 1px;
      background: @border-color;
      left: 7px;
      content: "";
      height: 100%;
      top: 8px;
    }
    &:last-child:before {
      display: none;
    }
  }
  .k-time-line-dot {
    position: absolute;
    background: #fff;
    top: 4px;
    left: -.5px;
    font-size: 16px;
    color: @main;
    line-height: 1;
    border-radius: 50%;
  }
  .k-time-line-icon-default {
    font-size: 12px;
    left: 1px;
    top: 5.5px;
  }
  .k-time-line-item-content {
    padding: 0 0 20px 18px;
    font-size: 12px;
    position: relative;
    line-height: 22px;
    top: 0;
    box-sizing: border-box;
  }
}

.k-timeline-center {
  width: 100%;
  display: inline-block;
  .k-time-line-item {
    width: 50%;
    &:nth-child(odd) {
      left: 50%;
      margin-left: -8px;
    }
    &:nth-child(even) {
      text-align: right;
      .k-time-line-dot {
        left: 100%;
        transform: translateX(-50%);
      }
      .k-time-line-item-content {
        padding: 0 12px 20px 0;
      }
      &:before {
        left: 100%;
        margin-left: -1px;
        z-index: 0;
      }
    }
  }
}

.k-timeline-right {
  text-align: right;
  .k-time-line-item {
    &:before {
      left: 100%;
      margin-left: -7px;
    }
  }
  .k-time-line-dot {
    left: 100%;
    margin-left: -14.5px;
  }
  .k-time-line-icon-default {
    margin-left: -12.5px;
  }
  .k-time-line-item-content {
    padding-right: 18px
  }
}